import request from '@/utils/request'

// 查询帖子评论列表
export function listPostComments(query) {
  return request({
    url: '/system/postComments/list',
    method: 'get',
    params: query
  })
}

// 查询帖子评论详细
export function getPostComments(postCommentId) {
  return request({
    url: '/system/postComments/' + postCommentId,
    method: 'get'
  })
}

// 新增帖子评论
export function addPostComments(data) {
  return request({
    url: '/system/postComments',
    method: 'post',
    data: data
  })
}

// 修改帖子评论
export function updatePostComments(data) {
  return request({
    url: '/system/postComments',
    method: 'put',
    data: data
  })
}

// 删除帖子评论
export function delPostComments(postCommentId) {
  return request({
    url: '/system/postComments/' + postCommentId,
    method: 'delete'
  })
}
